
#include <vector>
using namespace std;


class Ball {
	public:
		Ball();
		virtual ~Ball(); // Destructor
		void launchBall(vector<double> launchPos, double velocity, double upangle, double bearing, vector<bool> rack);
		vector<double> getPosition(double time);
		vector<double> getAngle(double time);
	private:
		double xpos, ypos, zpos;
		double xpos1, ypos1, zpos1;
		double vi, vix, viz, viy;
		double vx, vy, vz; 
		double uRad, bRad;
		double gravity;
		vector<double> pos;
		vector<double> angle;
	    vector <double> initPos;
};
static const double PI = 3.141593;
const double DEG_TO_RAD = PI / 180.;
const double RAD_TO_DEG = 180/PI;